翻译(英-->汉) 在线等

来源:百度知道 编辑:UC知道 时间:2024/06/05 15:09:10
Attractive Loan
Problem code: HS08RBRT

Once upon a time Robert took a bank loan. The interest rate, which appeared to be "one percent", looked extremely attractive. Unhappily, it turned out that he had not read the fine print of the contract carefully. The installments have to paid on each of 50 subsequent Mondays. This weekly payment consists of two parts: the so called capital part (paying back the original loan) and the interest part. The capital part is 2% of the loan amount, and the interest part is equal to 1% of the part of the loan amount which still remains to be paid. The resulting sum is rounded to full Euros (rounding is always up).

Compute the total sum that Robert will have to pay back.

Input
Positive integer 0 < X <= 100000 - the loan amount.

Output
The sum of all Robert payments.

Example 1
Input:
1

Output:
50

Example 2
Input:
1500

有吸引力的贷款

问题编号: HS08RBRT

曾几何时罗伯特了银行贷款。利息,这似乎是“百分之一” ,看上去极具吸引力。不幸的是,事实证明,他还没有看过白纸黑字的合同仔细。该分期付款要支付每50以后的星期一。这每周支付包括两个部分:所谓的资本的一部分(付费回到原来的贷款)和利息的一部分。首都部分是2 %的贷款额和利息的一部分,等于1 %的部分贷款数额仍然需要支付。由此产生的金额四舍五入到充分欧元(四舍五入,始终保持) 。

计算总金额,罗伯特将不得不支付。

输入

正整数0 “ X ” = 100000 -贷款额。

输出

的总和罗伯特付款。

范例1

输入:

1

输出:

50

示例2

输入:

1500

输出:

1905年

评分

为解决这个问题您将评分10分。

-------------------------------------------------- ------------------------------

新增:安斯基Kuszner

日期: 08年9月12号

时间限制: 1

源限制: 50000B

语言:所有

资源:高中联赛二千零九分之二千零八编程